}
}
- _reportInitError(where, error) {
+ _reportInitError(where, error, serviceName) {
logError(error, where);
this._hold.release();
this._queueMessage(_("Authentication error"), MessageType.ERROR);
- this._verificationFailed(false);
+ this._verificationFailed(serviceName, false);
}
async _openReauthenticationChannel(userName) {
}
this._reportInitError(this._userName
? 'Failed to start %s verification for user'.format(serviceName)
- : 'Failed to start %s verification'.format(serviceName), e);
+ : 'Failed to start %s verification'.format(serviceName), e,
+ serviceName);
return;
}
this._hold.release();
this.begin(this._userName, new Batch.Hold());
}
- _verificationFailed(retry) {
+ _verificationFailed(serviceName, retry) {
// For Not Listed / enterprise logins, immediately reset
// the dialog
// Otherwise, when in login mode we allow ALLOWED_FAILURES attempts.
if (foregroundService) {
this._credentialManagers[foregroundService].token = null;
this._preemptingService = null;
- this._verificationFailed(false);
+ this._verificationFailed(serviceName, false);
return;
}
// But if, e.g., fingerprint fails, still give
// password authentication a chance to succeed
if (this.serviceIsForeground(serviceName))
- this._verificationFailed(true);
+ this._verificationFailed(serviceName, true);
}
};
Signals.addSignalMethods(ShellUserVerifier.prototype);